<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.xingzhengshouwen.vo.ShouWenInfo"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
List bangongshipibanlist = (List)request.getAttribute("bangongshipibanlist");
List bumennibanlist = (List)request.getAttribute("bumennibanlist");
List lingdaopibanlist = (List)request.getAttribute("lingdaopibanlist");
List chuanyuelist = (List)request.getAttribute("chuanyuelist");
List dengjixiugailist = (List)request.getAttribute("dengjixiugailist");
List dangbanpibanlist = (List)request.getAttribute("dangbanpibanlist");
List bangongshichuanyue = (List)request.getAttribute("bangongshichuanyue");
List bumenchengbanlist = (List)request.getAttribute("bumenchengbanlist");
List banlizhonglist = (List)request.getAttribute("banlizhonglist");
Integer xingzhengduty = (Integer)request.getAttribute("xingzhengduty");
Integer dangweiduty = (Integer)request.getAttribute("dangweiduty");
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>"/>
	  <link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />  
	  <link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
    
    <script type="text/javascript"> 
    	var array = null;
    
    	
    	function frompostsubmit(){
    		var mantype = $("#maintype").val();
    		if(mantype=='2'){
    			$("form[name=form1]").attr("action",Ext.basePath+"tjsinfo/tjsoa/dangweishouwen/dengjifrom.do");
    		}else{
    			$("form[name=form1]").attr("action",Ext.basePath+"tjsinfo/tjsoa/xingzhengshouwen/dengjifrom.do");
    		}
    		$("form[name=form1]").submit();
    	}
    	
    	function deletedoc(url){
    		
    		Ext.MessageBox.show({
			           title:'消息',
			           msg: '是否执行此操作?',
			           buttons: Ext.MessageBox.YESNO,
			           fn: function(btn){
			           	  if(btn == 'yes'){
			           	  	$("form[name=form1]").attr("action",url);
    						$("form[name=form1]").submit();
			           	  }	
			           },
			           icon: Ext.MessageBox.QUESTION
			 });	
			 
			
    		}
    </script>
    	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/init.js"></script>
  <title>粮油集团办公自动化协作平台</title>
    
</head>
<body >
 <div id="component" style="width:100%;height:100%">

<form action="<%=basePath %>tjsinfo/tjsoa/xingzhengshouwen/dengjifrom.do" method="post" name="form1">

<div id="rightindex"  style="overflow-x:hidden;overflow-y: scroll; "  >
  <%
    			if(xingzhengduty != 0 || dangweiduty !=0)
    			{
	%>
  <div id="tab_n"> 
    <div id="indextit_n"><h1>收文登记</h1></div>
    <div class="index_n_m01">
    	<ul>
    			<li>文件所属：<select name="maintype" id="maintype">
			        		<%
			        		if(xingzhengduty == 1)
			        		{
			        		%>
			        			<option value="1" selected="selected">行政收文</option>
			        		<%	
			        		}
			        		if(dangweiduty == 1)
			        		{
			        		%>
			        			<option value="2" >党委收文</option>
			        		<%	
			        		}
			        		%>
			        	</select>
			 	</li>
        </ul>
        <div class="button">
    			<a href="javascript:frompostsubmit()"><img src="images/qd.gif" /></a>
        </div>
    </div>
   </div>
   <% 		
    	}
   %>
       
       <%  if (bangongshipibanlist.size()==0 && bumennibanlist.size()==0 && lingdaopibanlist.size()==0
	&&chuanyuelist.size()==0 && dengjixiugailist.size()==0 && bangongshichuanyue.size()==0 && bumenchengbanlist.size()==0 && banlizhonglist.size()==0){  %>
	您目前没有收文待办文件。

<%} %>
       
        	
   <%
   	  if(bangongshipibanlist.size() > 0)
   	  {
   %>
   <div id="tab_n"> 
    <div id="indextit_n"><h1>待办公室主任批办文件</h1></div>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
    	Iterator iterator = bangongshipibanlist.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo faWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenzihao()%></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>">办公室主任批办</a></td>
        </tr>
    	
    <% 		
    	}
   	  
    %>
    	</table>
    	 </div>
    	 <%
	    	}
	    %>
  
     <%
   	  if(dangbanpibanlist.size() > 0)
   	  {
   %>
   <div id="tab_n"> 
    <div id="indextit_n"><h1>待党办主任批办文件</h1></div>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
    	Iterator iterator = dangbanpibanlist.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo faWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenzihao()%></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>">党办主任批办</a></td>
        </tr>
    	
    <% 		
    	}
   	  
    %>
    	</table>
    	 </div>
    	 <%
	    	}
	    %>
  
  
   <%
   	  if(bumennibanlist.size() > 0)
   	  {
   %>
   <div id="tab_n"> 
    <div id="indextit_n"><h1>待承办部门拟办文件</h1></div>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
    	Iterator iterator = bumennibanlist.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo faWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenzihao()%></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>">拟办</a></td>
        </tr>
    	
    <% 		
    	}
   	  
    %>
    	</table>
    	 </div>
    	 <%
	    	}
	    %>
	   <%
   	  if(lingdaopibanlist.size() > 0)
   	  {
   %>
   <div id="tab_n"> 
    <div id="indextit_n"><h1>待领导批办文件</h1></div>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
    	Iterator iterator = lingdaopibanlist.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo faWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenzihao()%></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>">批办</a></td>
        </tr>
    	
    <% 		
    	}
   	  
    %>
    	</table>
    	 </div>
    	 <%
	    	}
	    %>    
	  
	      <%
    	if(bangongshichuanyue.size() > 0)
    	{
    %>
    <div id="tab_n"> 
    <div id="indextit_n"><h1>待办公室阅知文件</h1></div>
   
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
        Iterator iterator = bangongshichuanyue.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo faWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenzihao() %></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>">阅知</a></td>
        </tr>
    	
    <% 		
    		}
    	
    %>
    </table>
    </div>
    <%
    	}
    %>
   
   	      <%
    	if(chuanyuelist.size() > 0)
    	{
    %>
    <div id="tab_n"> 
    <div id="indextit_n"><h1>待传阅文件</h1></div>
   
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
        Iterator iterator = chuanyuelist.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo faWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>"><%=faWenInfo.getLaiwenzihao() %></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=faWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=faWenInfo.getId() %>&taskid=<%=faWenInfo.getTaskId() %>">传阅</a></td>
        </tr>
    	
    <% 		
    		}
    	
    %>
    </table>
    </div>
    <%
    	}
    %>
   <%
   	  if(bumenchengbanlist.size() > 0)
   	  {
   %>
   <div id="tab_n"> 
    <div id="indextit_n"><h1>待部门承办文件</h1></div>
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
    <%
    	Iterator iterator = bumenchengbanlist.iterator();
    	while(iterator.hasNext())
    	{
    		ShouWenInfo ShouWenInfo = (ShouWenInfo)iterator.next();
    %>
    	
        <tr >
            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>"><%=ShouWenInfo.getLaiwenbiaoti() %></a></td>
            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>"><%=ShouWenInfo.getLaiwenzihao()%></a></td>
            <td width="20%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>">部门承办</a></td>
        </tr>
    	
    <% 		
    	}
   	  
    %>
    	</table>
    	 </div>
    	 <%
	    	}
	    %>
	    
    <%
    	if(banlizhonglist.size() > 0)
    	{
    %>
     <div id="tab_n"> 
    <div id="indextit_n"><h1>办理中文件</h1></div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
         <%
	    	Iterator iterator = banlizhonglist.iterator();
	    	while(iterator.hasNext())
	    	{
	    		ShouWenInfo shouWenInfo = (ShouWenInfo)iterator.next();
	    %>
	    	
	        <tr >
	            <td width="55%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=shouWenInfo.getTableName() %>/shenpi.do?method=selectonedoc&id=<%=shouWenInfo.getId() %>"><%=shouWenInfo.getLaiwenbiaoti() %></a></td>
	            <td width="25%"><a href="<%=basePath %>tjsinfo/tjsoa/<%=shouWenInfo.getTableName() %>/shenpi.do?method=selectonedoc&id=<%=shouWenInfo.getId() %>"><%=shouWenInfo.getLaiwenzihao() %></a></td>
	            <td width="20%"><a href="<%=basePath %>documentationflow/xingzhengfawen/genzongview.jsp?flowid=<%=shouWenInfo.getFlowId() %>">流转信息</a>
	            
	            </td>	            
	        </tr>
	    	
	    <% 		
	    	}
    	
	    %>
        
    </table>
    </div>
    	<%
    	}
    	%>
   
  
   	 <%
    	if(dengjixiugailist.size() > 0)
    	{
    %>
     <div id="tab_n"> 
    <div id="indextit_n"><h1>退回文件</h1></div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="index_n_m02">
         <%
	    	Iterator iterator = dengjixiugailist.iterator();
	    	while(iterator.hasNext())
	    	{
	    		ShouWenInfo ShouWenInfo = (ShouWenInfo)iterator.next();
	    %>
	    	
	        <tr >
	            <td width="55%"><a href=" javascript:deletedoc('<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=deleteDoc&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>') "><%=ShouWenInfo.getLaiwenbiaoti() %></a></td>
	            <td width="30%"><a href="javascript:deletedoc('<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=deleteDoc&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>') "><%=ShouWenInfo.getLaiwenzihao()%></a></td>
	            <td width="15%">
	            	<a href="javascript:deletedoc('<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=deleteDoc&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>') ">删除</a>
	            	&nbsp;&nbsp;
	            	<a href="<%=basePath %>tjsinfo/tjsoa/<%=ShouWenInfo.getTableName() %>/shenpi.do?method=kongzhi&id=<%=ShouWenInfo.getId() %>&taskid=<%=ShouWenInfo.getTaskId() %>">修改</a>
	            </td>
	        </tr>
	    	
	    <% 		
	    	}
	    %>
        
    </table>
    </div>
    <%
    	}
    %>
   
</div>
 <input id="haotype" value="" type="hidden" name="haotype"/>
 <input id="temptype" value="" type="hidden" name="temptype"/>

</form>
</div>
</body>
</html>

